<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h1>你好！Jfinal</h1>
	<a href="/form?id=${b.id }">新增</a>
	<table style="border: green 2px dotted;">
		<tr>
			<td style="border: 1px solid blue;">序号</td>
			<td style="border: 1px solid blue;">标题</td>
			<td style="border: 1px solid blue;">内容</td>
			<td style="border: 1px solid blue;">创建时间</td>
			<td style="border: 1px solid blue;">操作</td>
		</tr>
		<c:forEach varStatus="t" items="${blogs }" var="b">
			<tr>
				<td style="border: 1px solid blue;">${t.index+1}</td>
				<td style="border: 1px solid blue;">${b.titile}</td>
				<td style="border: 1px solid blue;">${b.content}</td>
				<td style="border: 1px solid blue;">${b.publish_time}</td>
				<td style="border: 1px solid blue;"><img
					src="${ctx }/upload/${b.imgpath}" alt="上海鲜花港 - 郁金香" height="50"
					width="70" /></td>
				<td style="border: 1px solid blue;"><a
					href="/blog/form?id=${b.id }">编辑</a> <a
					href="/blog/delete?id=${b.id }">删除</a></td>

			</tr>
		</c:forEach>

	</table>




</body>
</html>